
 /*!
  *   
  *
  * @file       Key.h
  * @brief      按键驱动头文件
  * @author     李可宇 伍成龙
  * @date       2017-6-10
  */


#ifndef __KEY_H___
#define __KEY_H___
#include "stm32f1xx_hal.h"


#define KEY1PIN HAL_GPIO_ReadPin(GPIOD,KEY1_Pin)
#define KEY2PIN HAL_GPIO_ReadPin(GPIOD,KEY2_Pin)
#define KEY3PIN HAL_GPIO_ReadPin(GPIOD,KEY3_Pin)
#define KEY4PIN HAL_GPIO_ReadPin(GPIOD,KEY4_Pin)
#define KEY5PIN HAL_GPIO_ReadPin(GPIOD,KEY5_Pin)
#define KEY6PIN HAL_GPIO_ReadPin(GPIOD,KEY6_Pin)
static uint8_t Key_State=0;
static uint8_t Key_con=0;
void KEY_Init(void);
uint8_t ReadKeyBoard(void);

#endif 
